package org.acb.sgp.beans;

import java.io.Serializable;
import java.util.Objects;

public class Color implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer codColor;
    private String nomColor;

    public Color() {
    }

    public Integer getCodColor() {
        return codColor;
    }

    public void setCodColor(Integer codColor) {
        this.codColor = codColor;
    }

    public String getNomColor() {
        return nomColor;
    }

    public void setNomColor(String nomColor) {
        this.nomColor = nomColor;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + Objects.hashCode(this.codColor);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Color other = (Color) obj;
        if (!Objects.equals(this.codColor, other.codColor)) {
            return false;
        }
        return true;
    }

}
